package com.jinrustar.httpfileserver.springboot.controller

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping


@Controller
@RequestMapping(value = "")
class ErrorController {

    @RequestMapping(value = "/400")
    fun error400(): Any {
        return "400"
    }

    @RequestMapping(value = "/401")
    fun error401(): Any {
        return "401"
    }

    @RequestMapping(value = "/404")
    fun error404(): Any {
        return "404"
    }

    @RequestMapping(value = "/500")
    fun error500(): String {
        return "500"
    }


//    @RequestMapping(value = ["/error"])
//    fun error(): Any {
//        return "error"
//    }
}